﻿<%--
   Copyright 2012 University of Southampton

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--%>

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ParameterGraphCategory.aspx.cs" Inherits="uk.ac.soton.ses.layouts.ParameterGraphCategory" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>

<%@ Register TagPrefix="hdc" Namespace="uk.ac.soton.ses.WebControls" Assembly="HDCWebControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=be2a37f6f7c4bcce" %>
<%@ Register TagPrefix="hdc" TagName="ExperimentQuickSearch" Src="/_ControlTemplates/uk.ac.soton.ses/HDCUserControls/ExperimentQuickSearch.ascx" %>

<html>

<head>
<title>Report</title>
<style type="text/css">
    
    /*#ReportTable{font-family:Sans-Serif;font-size:10pt;}*/
    body {font-family:Sans-Serif;font-size:10pt;}
    #ReportTable td,#ReportTable th {padding:0px 10px 0px 10px;text-align:left;}
    #ReportTable th {font-weight:bold;}
    #ReportTable td { border: 1px solid grey;}

    @media screen
    {
        body {font-size:8pt;}
        .ReportDiv {float:left;}
        #ReportConfigurationDiv {width:30%;}
        #ReportOutputDiv {width:70%;}

        #DatasetSelectionDiv{background-color:#bbddff;}
        #ParameterSelectionDiv{background-color:#aaddaa;}
        table.FieldSelection {font-size:8pt;}
        #ReportTableDiv {height:460px;overflow:scroll;}

        .OptionLabel{float:left;width:12em;clear:left;}
        .OptionBox{float:left;width:3em;}
        .OptionDiv{background-color:#aaffaa;}
        .SelectionDiv{overflow:auto;}
        .InfoDiv{background-color:#dddddd;}
        .ExcludedItems{color:Red;}
        
        .ui-autocomplete {max-height: 100px; overflow: auto;}
        .ui-menu-item {font-family:Helvetica, Arial, sans-serif;font-size:8pt;}
    }
    
    @media print
    {
        .NonPrintDiv{display:none;}
        #ReportTable{font-family:Serif}
    }
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.24/jquery-ui.min.js" type="text/javascript"></script>
<script src="/_layouts/HDC/Scripts/HighCharts-3.0.2/js/highcharts.js" type="text/javascript"></script>
<link rel="Stylesheet" href="//code.jquery.com/ui/1.8.24/themes/base/jquery-ui.css" type="text/css" />
</head>

<body>
<form ID="form" runat="server">
    <div id="ReportConfigurationDiv" class="ReportDiv NonPrintDiv">
        <div id="DatasetSelectionDiv">
            <div style="height:35px">
                <b>Dataset selection:</b>
                <br />
                <hdc:ExperimentQuickSearch ID="ctl_ExperimentQuickSearch" runat="server" SearchLabelText="Quick search (experiment, file or parameter):" OKButtonText="Add"/>
            </div>
            <div class="SelectionDiv" style="height:205px">
                <asp:CheckBoxList ID="lst_Datasets" runat="server" AutoPostBack="true" CssClass="FieldSelection" ></asp:CheckBoxList>
            </div>
        </div>
        <div id="ParameterSelectionDiv">
            <div style="height:15px">
                <b>Parameter selection:</b> 
                <asp:CheckBox ID="chk_UseParentParamAsDataset" runat="server" AutoPostBack="true" Text="Use parent param as dataset name" />
            </div>
            <div class="SelectionDiv" style="height:205px">
                <asp:CheckBoxList ID="lst_Parameters" runat="server" AutoPostBack="true" CssClass="FieldSelection" ></asp:CheckBoxList>
            </div>
        </div>
        <div>
            <asp:Label ID="lbl_ExcludedExperiments" runat="server" CssClass="ExcludedItems"/>
            <asp:Label ID="lbl_ExcludedParameters" runat="server" CssClass="ExcludedItems"/>
        </div>
    </div>
    <div id="ReportOutputDiv" class="ReportDiv">
        <div id="ReportTableDiv">
            <div id="graphcontainer"></div>
            <asp:PlaceHolder ID="PlaceHolder_Messages" runat="server" />
        </div>
        <asp:Panel id="ReportButtons" class="NonPrintDiv" runat="server" style="float:left;width:100%">
            <div style="float:left">
                <asp:LinkButton ID="btn_SaveReport" runat="server" Text="Save link to this view as parameter" />&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btn_SaveAsMetadata" runat="server" Text="Save this view as metadata" />
            </div>
            <div style="float:right">
                <div style="float:left">
                    <asp:CheckBox ID="chk_StackedGraph" runat="server" AutoPostBack="true" Text="Stacked" />
                </div>
                <div style="float:left">
                    <asp:RadioButtonList ID="lst_GraphType" runat="server" RepeatDirection="Horizontal" AutoPostBack="true">
                        <asp:ListItem Text="Bar" Value="bar" Selected="True" />
                        <asp:ListItem Text="Column" Value="column" />
                        <asp:ListItem Text="Pie" Value="pie" />
                    </asp:RadioButtonList>
                </div>
            </div>
        </asp:Panel>
    </div>
</form>
</body>

</html>